package com.itheima.mall.client;

import com.itheima.mall.pojo.Demo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "mall-oms-server")
public interface DemoClient {

    @GetMapping("/test")
    Demo getDemo(@RequestParam("name") String name,@RequestParam("age") Long age);

}
